<template>
<div class="">
    <img v-if="ifShowImg" :src="url" :_name="name" alt="" class="img" hidden><a :href="url" :class="aClass" onclick="imgLinkClick(event,this)">{{name}}</a>
</div>
</template>

<script>
export default {
    data() {
        return {

        }
    },
    props: ['proof', 'index'],
    methods: {
    },
    computed: {
        name: function() {
            return this.proof.imgName;
        },
        url: function() {
            return this.proof.url;
        },
        ifShowImg: function() {
            return this.proof.isEmail != 1;
        },
        aClass: function() {
            return this.proof.isEmail == 1 ? 'link' : 'img-link';
        }

    }

}
</script>

<style lang="css">
</style>
